<template>
  <the-table :columns="columns" uri="/g/buys"> </the-table>
</template>
<script>
import theTable from '@/components/theTable.vue'

const columns = [
  {
    title: '订单号',
    dataIndex: 'id',
    searchAble: true,
  },

  {
    title: '用户名',
    dataIndex: 'member.username',
    searchAble: true,
  },
  {
    title: '币值',
    dataIndex: 'coins',
  },
  {
    title: '用户佣金',
    dataIndex: 'fee',
  },
  {
    title: '代理佣金',
    dataIndex: 'agent_fee',
  },
  {
    title: '用户奖励',
    dataIndex: 'tip',
  },
  {
    title: '代理奖励',
    dataIndex: 'agent_tip',
  },
  // 用户佣金、用户奖励、代理佣金、代理奖励
  {
    title: '下发时间',
    dataIndex: 'created_at',
  },
  {
    title: '接单时间',
    dataIndex: 'took_at',
  },
  {
    title: '完成时间',
    dataIndex: 'unfreeze_at',
  },
]

export default {
  components: { theTable },

  data() {
    return {
      columns,
    }
  },
  computed: {},
  mounted() {},
  methods: {},
}
</script>
